package cn.smile.dao.admin;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import cn.smile.entity.admin.DatabaseBak;

/**
 * 数据库备份处理层
 */
@SuppressWarnings("JpaQlInspection")
@Repository
public interface DatabaseBakDao extends JpaRepository<DatabaseBak, Long> {

    /**
     * 根据id来查询
     */
    @Query("select db from DatabaseBak db where id = :id")
    DatabaseBak find(@Param("id") Long id);


}
